package com.huawei.appmarket.service.pay.purchase;

import android.app.ActionBar;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageInfo;
import android.content.res.Configuration;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.TextUtils;
import android.text.style.ForegroundColorSpan;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.TextView;
import androidx.annotation.NonNull;
import com.huawei.android.app.ActionBarEx;
import com.huawei.appgallery.foundation.account.bean.UserSession;
import com.huawei.appgallery.foundation.service.common.protocol.request.AppListFragmentRequest;
import com.huawei.appgallery.foundation.ui.framework.activity.BaseActivity;
import com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.TaskFragment;
import com.huawei.appgallery.foundation.ui.framework.uikit.ContractFragment;
import com.huawei.appgallery.foundation.ui.framework.widget.toolbar.ToolBarIcon;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import com.huawei.appmarket.service.pay.purchase.view.AppTraceEditActivityProtocol;
import com.huawei.appmarket.service.pay.purchase.view.AppZoneEditListFragmentProtocol;
import com.huawei.appmarket.service.pay.purchase.view.AppZoneEditListFragmentProtocol.Request;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import o.azb;
import o.azc;
import o.cdb;
import o.cdg;
import o.cfw;
import o.cgv;
import o.cjk;
import o.cjm;
import o.cjo;
import o.BaseAlertDialog;
import o.cvt;
import o.BaseRequest;
import o.dgm;
import o.djl;
import o.Logger;
import o.doo;
import o.ContentManager;
import o.ect;
import o.ecz;
import o.eda;
import o.epv;
import o.ActivityUtil;
import o.evk;
import o.ewm$g;
import o.ewm.e;
import o.ewm.h;
import o.ewm.i;
import o.ewm.j;
import o.ewm.n;
import o.ll;

public class AppTraceEditActivity extends BaseActivity<AppTraceEditActivityProtocol> implements OnClickListener, ecz {
    public static final String ͺ = (ContentManager.getInstant().getContext().getPackageName() + ".appzone_trace_change_broadcast");
    private View ʻॱ;
    private LinearLayout ʽॱ;
    private ImageView ʾ;
    private Menu ʿ;
    private ImageView ˈ;
    private ToolBarIcon ˉ;
    private ToolBarIcon ˊˊ;
    private View ˊˋ;
    private boolean ˊॱ = false;
    private View ˊᐝ;
    private LinearLayout ˋˊ;
    private int ˋॱ = 0;
    private List<String> ˌ = new ArrayList();
    private djl ˍ;
    private c ˎˎ = null;
    private final BroadcastReceiver ˏॱ = new BroadcastReceiver(this) {
        final /* synthetic */ AppTraceEditActivity ॱ;

        {
            this.ॱ = r1;
        }

        public void onReceive(Context context, Intent intent) {
            if ("com.huawei.hwid.ACTION_REMOVE_ACCOUNT".equals(intent.getAction())) {
                this.ॱ.finish();
            }
        }
    };
    private ActionBar ॱˊ;
    private String ॱˋ;
    private TextView ॱˎ;
    private ContractFragment ᐝॱ;

    static class a implements IServerCallBack {
        private WeakReference<AppTraceEditActivity> ˎ;

        public a(AppTraceEditActivity appTraceEditActivity) {
            this.ˎ = new WeakReference(appTraceEditActivity);
        }

        public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
        }

        public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
            if (this.ˎ == null) {
                Logger.e("AppTraceEditAct", "notifyResult : null reference");
                return;
            }
            AppTraceEditActivity appTraceEditActivity = (AppTraceEditActivity) this.ˎ.get();
            if (appTraceEditActivity != null) {
                appTraceEditActivity.ˍ.dismiss();
                if (responseBean.getResponseCode() == 0 && responseBean.getRtnCode_() == 0) {
                    Logger.ˎ("AppTraceEditAct", "delete successfully!!!size:" + appTraceEditActivity.ˌ.size());
                    Intent intent = new Intent(AppTraceEditActivity.ͺ);
                    intent.putExtra("app_traces_list_request_accountid", appTraceEditActivity.ॱˋ);
                    ll.ˏ(appTraceEditActivity.getApplicationContext()).ˋ(intent);
                    appTraceEditActivity.finish();
                    return;
                }
                Logger.e("AppTraceEditAct", "delete failed!!!");
                evk.ˏ(appTraceEditActivity, n.ˋᐝ, 0).ˋ();
            }
        }
    }

    static class c {
        private WeakReference<AppTraceEditActivity> ˋ;

        public c(AppTraceEditActivity appTraceEditActivity) {
            this.ˋ = new WeakReference(appTraceEditActivity);
        }

        private boolean ॱ(int i) {
            if (this.ˋ == null) {
                Logger.e("AppTraceEditAct", "onClick vid:" + i + ",null reference");
                return false;
            }
            AppTraceEditActivity appTraceEditActivity = (AppTraceEditActivity) this.ˋ.get();
            if (appTraceEditActivity != null) {
                if (!doo.ˊ(appTraceEditActivity)) {
                    Logger.e("AppTraceEditAct", "onClick vid:" + i + ",no network!!");
                    evk.ˋ(appTraceEditActivity, appTraceEditActivity.getString(n.ʹˊ), 0).ˋ();
                    return true;
                } else if (!UserSession.getInstance().isLoginSuccessful()) {
                    Logger.e("AppTraceEditAct", "onClick vid:" + i + ",no login!!");
                    appTraceEditActivity.finish();
                    return true;
                } else if ((i == j.ͺ || i == j.ᐨॱ) && appTraceEditActivity.ˌ.isEmpty()) {
                    Logger.e("AppTraceEditAct", "onClick vid:" + i + ",no select pkgs!!");
                    return true;
                }
            }
            return false;
        }

        private void ˊ(int i) {
            if (this.ˋ == null) {
                Logger.e("AppTraceEditAct", "setTitleAndBottom : null reference");
                return;
            }
            AppTraceEditActivity appTraceEditActivity = (AppTraceEditActivity) this.ˋ.get();
            if (appTraceEditActivity == null) {
                return;
            }
            if (i == 2) {
                appTraceEditActivity.ˊˋ.setVisibility(8);
                appTraceEditActivity.ʻॱ.setVisibility(0);
                return;
            }
            appTraceEditActivity.ˊˋ.setVisibility(0);
            appTraceEditActivity.ʻॱ.setVisibility(8);
        }

        private void ॱ() {
            if (this.ˋ == null) {
                Logger.e("AppTraceEditAct", "showDeleteDialog : null reference");
                return;
            }
            final AppTraceEditActivity appTraceEditActivity = (AppTraceEditActivity) this.ˋ.get();
            if (appTraceEditActivity != null) {
                final BaseAlertDialog ˋ = BaseAlertDialog.ˋ(appTraceEditActivity, null, appTraceEditActivity.getResources().getQuantityString(i.ॱॱ, appTraceEditActivity.ˌ.size(), new Object[]{String.valueOf(appTraceEditActivity.ˌ.size())}));
                ˋ.ॱ();
                ˋ.ॱ(BaseAlertDialog.a.ˋ, appTraceEditActivity.getString(n.ˎ));
                ˋ.ˊ(new OnClickListener(this) {
                    final /* synthetic */ c ˏ;

                    public void onClick(View view) {
                        ˋ.ˏ();
                        if (doo.ˊ(appTraceEditActivity)) {
                            this.ˏ.ˎ(0);
                        } else {
                            evk.ˏ(appTraceEditActivity, n.ʹˊ, 0).ˋ();
                        }
                    }
                });
            }
        }

        private void ˊ() {
            if (this.ˋ == null) {
                Logger.e("AppTraceEditAct", "showCleanDialog : null reference");
                return;
            }
            final AppTraceEditActivity appTraceEditActivity = (AppTraceEditActivity) this.ˋ.get();
            if (appTraceEditActivity != null) {
                final BaseAlertDialog ˋ = BaseAlertDialog.ˋ(appTraceEditActivity, null, appTraceEditActivity.getString(n.ʽˌ));
                ˋ.ॱ();
                ˋ.ॱ(BaseAlertDialog.a.ˋ, appTraceEditActivity.getString(n.ॱˑ));
                ˋ.ˊ(new OnClickListener(this) {
                    final /* synthetic */ c ˋ;

                    public void onClick(View view) {
                        ˋ.ˏ();
                        if (doo.ˊ(appTraceEditActivity)) {
                            int i = 1;
                            if (appTraceEditActivity.ˊॱ) {
                                i = 2;
                            }
                            this.ˋ.ˎ(i);
                            return;
                        }
                        evk.ˏ(appTraceEditActivity, n.ʹˊ, 0).ˋ();
                    }
                });
            }
        }

        private void ˎ(int i) {
            if (this.ˋ == null) {
                Logger.e("AppTraceEditAct", "deleteTraces : null reference");
                return;
            }
            AppTraceEditActivity appTraceEditActivity = (AppTraceEditActivity) this.ˋ.get();
            IServerCallBack aVar = new a(appTraceEditActivity);
            if (appTraceEditActivity != null) {
                appTraceEditActivity.ˍ = new djl(appTraceEditActivity);
                appTraceEditActivity.ˍ.setCanceledOnTouchOutside(false);
                appTraceEditActivity.ˍ.ˋ(appTraceEditActivity.getString(n.ˋˋ));
                appTraceEditActivity.ˍ.show();
                cvt ॱ = ect.ॱ(appTraceEditActivity.ˌ, dgm.ˎ(appTraceEditActivity));
                ॱ.ˋ(i);
                ॱ.ˎ(ˎ());
                cfw.ˎ(ॱ, aVar);
            }
        }

        private String ˎ() {
            StringBuilder stringBuilder = new StringBuilder();
            Iterator it = ((cdg) cdb.ॱ(cdg.class)).ʻ().iterator();
            while (it.hasNext()) {
                stringBuilder.append(((PackageInfo) it.next()).packageName);
                if (it.hasNext()) {
                    stringBuilder.append(",");
                }
            }
            return stringBuilder.toString();
        }

        private void ˋ(int i) {
            if (this.ˋ == null) {
                Logger.e("AppTraceEditAct", "refreshTitle : null reference");
                return;
            }
            AppTraceEditActivity appTraceEditActivity = (AppTraceEditActivity) this.ˋ.get();
            if (appTraceEditActivity != null) {
                ˋ(i, appTraceEditActivity.ॱˊ, appTraceEditActivity.getApplicationContext(), appTraceEditActivity.ॱˎ);
            }
        }

        private void ˋ(int i, ActionBar actionBar, Context context, @NonNull TextView textView) {
            if (azc.ˎ().ॱ() >= 21) {
                if (actionBar == null) {
                    return;
                }
                if (i > 0) {
                    actionBar.setTitle(context.getResources().getQuantityString(i.ˎ, i, new Object[]{Integer.valueOf(i)}));
                    return;
                }
                actionBar.setTitle(context.getString(n.ʼॱ));
            } else if (i > 0) {
                textView.setText(context.getResources().getQuantityString(i.ˎ, i, new Object[]{Integer.valueOf(i)}));
            } else {
                textView.setText(context.getString(n.ʼॱ));
            }
        }
    }

    public void ˋ(String str) {
        this.ˌ.add(str);
        this.ˎˎ.ˋ(this.ˌ.size());
        if (azc.ˎ().ॱ() >= 21) {
            ॱ(this.ʿ);
        } else {
            ᐝॱ();
        }
    }

    public void ˊ(Object obj) {
        this.ˌ.remove(obj);
        this.ˎˎ.ˋ(this.ˌ.size());
        if (azc.ˎ().ॱ() >= 21) {
            ॱ(this.ʿ);
        } else {
            ᐝॱ();
        }
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        this.ˎˎ = new c(this);
        setContentView(h.ˋ);
        cgv.ˋ(this, o.ewm.c.ˎ, o.ewm.c.ˋ);
        getWindow().getDecorView().setBackgroundColor(getResources().getColor(o.ewm.c.ॱˎ));
        List list = (List) ab_();
        if (list != null) {
            this.ˌ = list;
        }
        AppTraceEditActivityProtocol appTraceEditActivityProtocol = (AppTraceEditActivityProtocol) ʾ();
        String str = "";
        if (appTraceEditActivityProtocol == null || appTraceEditActivityProtocol.ˋ() == null) {
            Logger.e("AppTraceEditAct", "AppTraceEditActivityProtocol is null or request is null");
            this.ˋॱ = 0;
            this.ˊॱ = false;
            this.ॱˋ = UserSession.getInstance().getUserId();
        } else {
            this.ˋॱ = appTraceEditActivityProtocol.ˋ().ˎ();
            this.ˊॱ = appTraceEditActivityProtocol.ˋ().ˋ();
            this.ॱˋ = appTraceEditActivityProtocol.ˋ().ॱ();
        }
        ͺ();
        ॱˊ();
        if (azc.ˎ().ॱ() < 21) {
            this.ˎˎ.ˊ(getResources().getConfiguration().orientation);
        }
        if (TextUtils.isEmpty(this.ॱˋ)) {
            Logger.e("AppTraceEditAct", "AppTraceEditActivity error!!!!accountId is null");
            finish();
            return;
        }
        if (TextUtils.isEmpty(str) || ((cdg) cdb.ॱ(cdg.class)).ॱॱ(str)) {
            this.ˎˎ.ˋ(this.ˌ.size());
        } else {
            ˋ(str);
        }
        ᐝ();
        if (this.ᐝॱ instanceof TaskFragment) {
            ((TaskFragment) this.ᐝॱ).ˋ(ˏॱ(), j.ˋˊ, "AppZoneEditListFra");
        } else {
            Logger.e("AppTraceEditAct", "appZoneEditListFragment is not instanceof TaskFragment");
        }
        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction("com.huawei.hwid.ACTION_REMOVE_ACCOUNT");
        registerReceiver(this.ˏॱ, intentFilter);
    }

    public Object T_() {
        super.T_();
        return this.ˌ;
    }

    private void ᐝ() {
        AppTraceEditActivityProtocol appTraceEditActivityProtocol = (AppTraceEditActivityProtocol) ʾ();
        if (appTraceEditActivityProtocol != null) {
            cjo appZoneEditListFragmentProtocol = new AppZoneEditListFragmentProtocol();
            AppListFragmentRequest request = new Request();
            request.ˋॱ(this.ॱˋ);
            request.ॱ(1);
            request.ˋ(this.ˋॱ);
            request.ᐝ(this.ˊॱ);
            appZoneEditListFragmentProtocol.ˏ(request);
            this.ᐝॱ = (ContractFragment) cjk.ˎ().ˊ(new cjm(appTraceEditActivityProtocol.ॱ(), appZoneEditListFragmentProtocol));
        }
    }

    public void setTitle(CharSequence charSequence) {
    }

    private void ͺ() {
        View findViewById = findViewById(j.ⵗ);
        azb.ˏ(findViewById);
        findViewById.findViewById(j.ߺˎ).setOnClickListener(this);
        this.ʻॱ = findViewById.findViewById(j.ʴˋ);
        this.ʽॱ = (LinearLayout) findViewById.findViewById(j.ᐨॱ);
        this.ʽॱ.setOnClickListener(this);
        LinearLayout linearLayout = (LinearLayout) findViewById.findViewById(j.ᵔ);
        linearLayout.setOnClickListener(this);
        this.ˋˊ = (LinearLayout) findViewById.findViewById(j.ᵎ);
        this.ˋˊ.setOnClickListener(this);
        this.ˈ = (ImageView) findViewById.findViewById(j.ٴˊ);
        this.ʾ = (ImageView) findViewById.findViewById(j.ـʻ);
        this.ॱˎ = (TextView) findViewById.findViewById(j.ᔇ);
        if (this.ˋॱ == 0) {
            this.ʽॱ.setVisibility(0);
            linearLayout.setVisibility(0);
            this.ˋˊ.setVisibility(8);
        } else {
            this.ʽॱ.setVisibility(8);
            linearLayout.setVisibility(8);
            this.ˋˊ.setVisibility(0);
        }
        this.ॱˊ = getActionBar();
        if (azc.ˎ().ॱ() >= 21) {
            findViewById.setVisibility(8);
            this.ॱˊ.setTitle(getString(n.ʼॱ));
            this.ॱˊ.show();
            Drawable drawable = getResources().getDrawable(e.ॱͺ);
            if (drawable != null) {
                ActionBarEx.setStartIcon(this.ॱˊ, true, drawable, new OnClickListener(this) {
                    final /* synthetic */ AppTraceEditActivity ˏ;

                    {
                        this.ˏ = r1;
                    }

                    public void onClick(View view) {
                        this.ˏ.finish();
                    }
                });
            }
            this.ॱˊ.setDisplayHomeAsUpEnabled(false);
            return;
        }
        this.ॱˊ.hide();
    }

    private void ॱˊ() {
        int ˊ = epv.ˊ(this, 2);
        this.ˊˋ = findViewById(j.ꓸॱ);
        this.ˊˊ = (ToolBarIcon) findViewById(j.ͺ);
        this.ˊˊ.setOnClickListener(this);
        LayoutParams layoutParams = (LayoutParams) this.ˊˊ.getLayoutParams();
        layoutParams.gravity = 17;
        layoutParams.width = ˊ;
        this.ˊˊ.setLayoutParams(layoutParams);
        this.ˊᐝ = findViewById(j.ᐝʻ);
        this.ˊᐝ.setOnClickListener(this);
        layoutParams = (LayoutParams) this.ˊᐝ.getLayoutParams();
        layoutParams.gravity = 17;
        layoutParams.width = ˊ;
        this.ˊᐝ.setLayoutParams(layoutParams);
        this.ˉ = (ToolBarIcon) findViewById(j.ⴾ);
        this.ˉ.setOnClickListener(this);
        layoutParams = (LayoutParams) this.ˉ.getLayoutParams();
        layoutParams.gravity = 17;
        layoutParams.width = ˊ;
        this.ˉ.setLayoutParams(layoutParams);
        if (this.ˋॱ == 0) {
            this.ˊˊ.setVisibility(0);
            this.ˊᐝ.setVisibility(0);
            this.ˉ.setVisibility(8);
        } else {
            this.ˊˊ.setVisibility(8);
            this.ˊᐝ.setVisibility(8);
            this.ˉ.setVisibility(0);
        }
        ᐝॱ();
    }

    public boolean onCreateOptionsMenu(Menu menu) {
        super.onCreateOptionsMenu(menu);
        if (azc.ˎ().ॱ() >= 21) {
            ॱ(menu);
        }
        return true;
    }

    public boolean onOptionsItemSelected(MenuItem menuItem) {
        if (menuItem.getItemId() == 16908332) {
            finish();
            return true;
        } else if (menuItem.getItemId() == j.ˏॱ) {
            if (this.ˊˊ == null) {
                return true;
            }
            this.ˊˊ.performClick();
            return true;
        } else if (menuItem.getItemId() == j.ˋॱ) {
            if (this.ˊᐝ == null) {
                return true;
            }
            this.ˊᐝ.performClick();
            return true;
        } else if (menuItem.getItemId() != j.ॱˊ) {
            return super.onOptionsItemSelected(menuItem);
        } else {
            if (this.ˉ == null) {
                return true;
            }
            this.ˉ.performClick();
            return true;
        }
    }

    public boolean onKeyDown(int i, KeyEvent keyEvent) {
        if (i == 4) {
            setResult(1001);
        }
        return super.onKeyDown(i, keyEvent);
    }

    public void onConfigurationChanged(Configuration configuration) {
        super.onConfigurationChanged(configuration);
        this.ˎˎ.ˋ(this.ˌ.size());
        invalidateOptionsMenu();
        if (configuration == null) {
            return;
        }
        if (azc.ˎ().ॱ() >= 21) {
            ॱ(this.ʿ);
        } else {
            this.ˎˎ.ˊ(configuration.orientation);
        }
    }

    public void onClick(View view) {
        int id = view.getId();
        if (id == j.ͺ || id == j.ᐨॱ) {
            if (!this.ˎˎ.ॱ(id)) {
                this.ˎˎ.ॱ();
            }
        } else if (id == j.ߺˎ) {
            setResult(1001);
            finish();
        } else if (id == j.ᐝʻ || id == j.ᵔ) {
            if (!this.ˎˎ.ॱ(id)) {
                this.ˎˎ.ˊ();
            }
        } else if ((id == j.ⴾ || id == j.ᵎ) && this.ᐝॱ != null) {
            eda o_eda = (eda) this.ᐝॱ.ˊ(eda.class);
            if (o_eda != null) {
                o_eda.ˋ(view);
            }
        }
    }

    public void onBackPressed() {
        super.onBackPressed();
        setResult(1001);
        finish();
    }

    private void ॱ(Menu menu) {
        if (this.ˊˋ != null) {
            this.ˊˋ.setVisibility(8);
        }
        if (this.ʻॱ != null) {
            this.ʻॱ.setVisibility(8);
        }
        if (menu != null) {
            menu.clear();
            if (this.ˋॱ == 0) {
                getMenuInflater().inflate(ewm$g.ˏ, menu);
                resetUninstallMenu(menu.findItem(j.ˏॱ));
            } else {
                getMenuInflater().inflate(ewm$g.ॱ, menu);
                resetUninstallMenu(menu.findItem(j.ॱˊ));
            }
            this.ʿ = menu;
        }
    }

    public void resetUninstallMenu(MenuItem menuItem) {
        CharSequence spannableString;
        if (this.ˋॱ == 0) {
            if (this.ˌ.isEmpty()) {
                spannableString = new SpannableString(menuItem.getTitle());
                spannableString.setSpan(new ForegroundColorSpan(getResources().getColor(o.ewm.c.ˊॱ)), 0, spannableString.length(), 0);
                menuItem.setTitle(spannableString);
                menuItem.setEnabled(false);
                return;
            }
            menuItem.setIcon(e.ͺˏ);
            menuItem.setTitle(n.ˎ);
        } else if (this.ˌ.isEmpty()) {
            spannableString = new SpannableString(menuItem.getTitle());
            spannableString.setSpan(new ForegroundColorSpan(getResources().getColor(o.ewm.c.ˊॱ)), 0, spannableString.length(), 0);
            menuItem.setTitle(spannableString);
            menuItem.setEnabled(false);
        } else {
            menuItem.setIcon(e.ˑॱ);
            menuItem.setTitle(n.ٴ);
        }
    }

    private void ᐝॱ() {
        int ˋ = epv.ˋ(ContentManager.getInstant().getContext(), 24);
        Drawable drawable;
        if (this.ˋॱ == 0) {
            if (this.ˌ.isEmpty()) {
                this.ˊˊ.setEnabled(false);
                this.ʽॱ.setEnabled(false);
                this.ˊˊ.ˋ().setTextColor(getResources().getColor(o.ewm.c.ˊॱ));
                drawable = ContentManager.getInstant().getContext().getResources().getDrawable(e.ᐧ);
            } else {
                this.ˊˊ.setEnabled(true);
                this.ʽॱ.setEnabled(true);
                this.ˊˊ.ˋ().setTextColor(getResources().getColor(o.ewm.c.ʼ));
                drawable = ContentManager.getInstant().getContext().getResources().getDrawable(e.ͺˏ);
            }
            drawable.setBounds(0, 0, ˋ, ˋ);
            this.ˊˊ.ˋ().setCompoundDrawables(null, drawable, null, null);
            this.ˈ.setImageDrawable(drawable);
            return;
        }
        if (this.ˌ.isEmpty()) {
            this.ˉ.setEnabled(false);
            this.ˋˊ.setEnabled(false);
            this.ˉ.ˋ().setTextColor(getResources().getColor(o.ewm.c.ˊॱ));
            drawable = ContentManager.getInstant().getContext().getResources().getDrawable(e.ͺˎ);
        } else {
            this.ˉ.setEnabled(true);
            this.ˋˊ.setEnabled(true);
            this.ˉ.ˋ().setTextColor(getResources().getColor(o.ewm.c.ʼ));
            drawable = ContentManager.getInstant().getContext().getResources().getDrawable(e.ˑॱ);
        }
        drawable.setBounds(0, 0, ˋ, ˋ);
        this.ˉ.ˋ().setCompoundDrawables(null, drawable, null, null);
        this.ʾ.setImageDrawable(drawable);
    }

    public void onDestroy() {
        super.onDestroy();
        ActivityUtil.unregisterReceiver(this, this.ˏॱ);
    }
}
